# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perlio-via-symlink
pkgver=0.05
pkgrel=9
pkgdesc="Perl/CPAN Module PerlIO::via::symlink"
arch=("any")
url="https://search.cpan.org/dist/PerlIO-via-symlink/"
license=("GPL" "PerlArtistic")
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/C/CL/CLKAO/PerlIO-via-symlink-$pkgver.tar.gz"
	"Makefile.PL")
sha256sums=('4107d4c34a6a3629453448c25695d92f82522aff64e29b716b56a5af586b2d52'
            '4575f017586e1d6855c19e4149c4ec46da4a6e36d2b5b230774d61344b7363e8')

build() {
  cd "$srcdir"/PerlIO-via-symlink-$pkgver
  PERL_MM_USE_DEFAULT=1 perl ../Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/PerlIO-via-symlink-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
